﻿// =================================================================== 
// 项目说明,功能实体类,用CodeSmith自动生成。
// =================================================================== 
// 文件名: ComplaintsEntity.cs
// 修改时间：2020-9-8 10:40:00
// 修改人: lixiong
// =================================================================== 
using System;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using JX.Infrastructure.Attribute;
using JX.Infrastructure.Common;

namespace JX.Core.Entity
{
	/// <summary>
	/// 数据库表：Complaints 的实体类.
	/// </summary>
	[Table("Complaints")]
	public partial class ComplaintsEntity
	{
		#region Properties
		private int? _cid = 0;
		/// <summary>
		/// 投诉ID/举报ID(主键)
		/// </summary>
		[Column("CID",TypeName="int")]
		[Key]
		public int? CID
		{
			get {return _cid;}
			set {_cid = value;}
		}
		
		private System.String _cno = string.Empty;
		/// <summary>
		/// 查询号码
		/// </summary>
		[Column("CNO",TypeName="nvarchar(50)")]
		[DisplayFormat(ConvertEmptyStringToNull = false)]
		public System.String CNO
		{
			get {return _cno;}
			set {_cno = value;}
		}
		
		private System.String _cName = string.Empty;
		/// <summary>
		/// 投诉谁/举报谁
		/// </summary>
		[Column("CName",TypeName="nvarchar(100)")]
		[DisplayFormat(ConvertEmptyStringToNull = false)]
		public System.String CName
		{
			get {return _cName;}
			set {_cName = value;}
		}
		
		private int? _cType = 0;
		/// <summary>
		/// 投诉类型/举报类弄
		/// </summary>
		[Column("CType",TypeName="int")]
		public int? CType
		{
			get {return _cType;}
			set {_cType = value;}
		}
		
		private int? _cDType = 0;
		/// <summary>
		/// 区分投诉/举报
		/// </summary>
		[Column("CDType",TypeName="int")]
		public int? CDType
		{
			get {return _cDType;}
			set {_cDType = value;}
		}
		
		private System.String _cContent = string.Empty;
		/// <summary>
		/// 投诉内容
		/// </summary>
		[Column("CContent",TypeName="nvarchar(MAX)")]
		[DisplayFormat(ConvertEmptyStringToNull = false)]
		public System.String CContent
		{
			get {return _cContent;}
			set {_cContent = value;}
		}
		
		private System.String _cContact = string.Empty;
		/// <summary>
		/// 联系人
		/// </summary>
		[Column("CContact",TypeName="nvarchar(200)")]
		[DisplayFormat(ConvertEmptyStringToNull = false)]
		public System.String CContact
		{
			get {return _cContact;}
			set {_cContact = value;}
		}
		
		private DateTime? _cTime = null;
		/// <summary>
		/// 添加时间
		/// </summary>
		[Column("CTime",TypeName="datetime")]
		public DateTime? CTime
		{
			get {return _cTime;}
			set {_cTime = value;}
		}
		
		private System.String _cip = string.Empty;
		/// <summary>
		/// 投诉人/举报人IP
		/// </summary>
		[Column("CIP",TypeName="nvarchar(50)")]
		[DisplayFormat(ConvertEmptyStringToNull = false)]
		public System.String CIP
		{
			get {return _cip;}
			set {_cip = value;}
		}
		
		private int? _cState = 0;
		/// <summary>
		/// 状态 0 为未查看,1 已查看,2处理中,3已处理
		/// </summary>
		[Column("CState",TypeName="int")]
		public int? CState
		{
			get {return _cState;}
			set {_cState = value;}
		}
		
		private int? _cAdminID = 0;
		/// <summary>
		/// 最后操作人ID
		/// </summary>
		[Column("CAdminID",TypeName="int")]
		public int? CAdminID
		{
			get {return _cAdminID;}
			set {_cAdminID = value;}
		}
		
		#endregion
	}
}
